﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000CD RID: 205
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AvatarExpUpCsReq : IMessage<AvatarExpUpCsReq>, IMessage, IEquatable<AvatarExpUpCsReq>, IDeepCloneable<AvatarExpUpCsReq>, IBufferMessage
	{
		// Token: 0x170002C6 RID: 710
		// (get) Token: 0x06000976 RID: 2422 RVA: 0x0001C7A9 File Offset: 0x0001A9A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AvatarExpUpCsReq> Parser
		{
			get
			{
				return AvatarExpUpCsReq._parser;
			}
		}

		// Token: 0x170002C7 RID: 711
		// (get) Token: 0x06000977 RID: 2423 RVA: 0x0001C7B0 File Offset: 0x0001A9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AvatarExpUpCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170002C8 RID: 712
		// (get) Token: 0x06000978 RID: 2424 RVA: 0x0001C7C2 File Offset: 0x0001A9C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AvatarExpUpCsReq.Descriptor;
			}
		}

		// Token: 0x06000979 RID: 2425 RVA: 0x0001C7C9 File Offset: 0x0001A9C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarExpUpCsReq()
		{
		}

		// Token: 0x0600097A RID: 2426 RVA: 0x0001C7D4 File Offset: 0x0001A9D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarExpUpCsReq(AvatarExpUpCsReq other) : this()
		{
			this.baseAvatarId_ = other.baseAvatarId_;
			this.itemCost_ = ((other.itemCost_ != null) ? other.itemCost_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600097B RID: 2427 RVA: 0x0001C820 File Offset: 0x0001AA20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarExpUpCsReq Clone()
		{
			return new AvatarExpUpCsReq(this);
		}

		// Token: 0x170002C9 RID: 713
		// (get) Token: 0x0600097C RID: 2428 RVA: 0x0001C828 File Offset: 0x0001AA28
		// (set) Token: 0x0600097D RID: 2429 RVA: 0x0001C830 File Offset: 0x0001AA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x170002CA RID: 714
		// (get) Token: 0x0600097E RID: 2430 RVA: 0x0001C839 File Offset: 0x0001AA39
		// (set) Token: 0x0600097F RID: 2431 RVA: 0x0001C841 File Offset: 0x0001AA41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData ItemCost
		{
			get
			{
				return this.itemCost_;
			}
			set
			{
				this.itemCost_ = value;
			}
		}

		// Token: 0x06000980 RID: 2432 RVA: 0x0001C84A File Offset: 0x0001AA4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AvatarExpUpCsReq);
		}

		// Token: 0x06000981 RID: 2433 RVA: 0x0001C858 File Offset: 0x0001AA58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AvatarExpUpCsReq other)
		{
			return other != null && (other == this || (this.BaseAvatarId == other.BaseAvatarId && object.Equals(this.ItemCost, other.ItemCost) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000982 RID: 2434 RVA: 0x0001C8A8 File Offset: 0x0001AAA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this.itemCost_ != null)
			{
				num ^= this.ItemCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000983 RID: 2435 RVA: 0x0001C8FD File Offset: 0x0001AAFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000984 RID: 2436 RVA: 0x0001C905 File Offset: 0x0001AB05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000985 RID: 2437 RVA: 0x0001C910 File Offset: 0x0001AB10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.itemCost_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.ItemCost);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000986 RID: 2438 RVA: 0x0001C96C File Offset: 0x0001AB6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this.itemCost_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ItemCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000987 RID: 2439 RVA: 0x0001C9C4 File Offset: 0x0001ABC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AvatarExpUpCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			if (other.itemCost_ != null)
			{
				if (this.itemCost_ == null)
				{
					this.ItemCost = new ItemCostData();
				}
				this.ItemCost.MergeFrom(other.ItemCost);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000988 RID: 2440 RVA: 0x0001CA2C File Offset: 0x0001AC2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000989 RID: 2441 RVA: 0x0001CA38 File Offset: 0x0001AC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.itemCost_ == null)
						{
							this.ItemCost = new ItemCostData();
						}
						input.ReadMessage(this.ItemCost);
					}
				}
				else
				{
					this.BaseAvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040003D5 RID: 981
		private static readonly MessageParser<AvatarExpUpCsReq> _parser = new MessageParser<AvatarExpUpCsReq>(() => new AvatarExpUpCsReq());

		// Token: 0x040003D6 RID: 982
		private UnknownFieldSet _unknownFields;

		// Token: 0x040003D7 RID: 983
		public const int BaseAvatarIdFieldNumber = 6;

		// Token: 0x040003D8 RID: 984
		private uint baseAvatarId_;

		// Token: 0x040003D9 RID: 985
		public const int ItemCostFieldNumber = 10;

		// Token: 0x040003DA RID: 986
		private ItemCostData itemCost_;
	}
}
